<template>
  <div>
    <h1>About Page</h1>
    <p>This is the about page.</p>
    <el-button @click="setTokenTime()">设置token过期</el-button>
    <el-button @click="$ToPath('/home')">Go to Home</el-button>
  </div>
</template>

<script setup>
import { getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
const setTokenTime = () => {
  const authDataStr = localStorage.getItem('authData')
  const authData = JSON.parse(authDataStr)
  authData.expires = Date.now() - 1
  localStorage.setItem('authData', JSON.stringify(authData))
}
</script>
